package leetcode.code1588;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution1588 implements IDebug {

	abstract public int sumOddLengthSubarrays(int[] arr);

	@Override
	public void debug1() {
		String strarray = "[1,4,2,5,3]";
		int expect = 58;
		int result = this.sumOddLengthSubarrays(HelpDebug.str2array3(strarray));
		HelpDebug.compare(expect, result);
	}

	@Override
	public void debug2() {
		String strarray = "[1,2]";
		int expect = 3;
		int result = this.sumOddLengthSubarrays(HelpDebug.str2array3(strarray));
		HelpDebug.compare(expect, result);
	}

	@Override
	public void debug3() {
		String strarray = "[10,11,12]";
		int expect = 66;
		int result = this.sumOddLengthSubarrays(HelpDebug.str2array3(strarray));
		HelpDebug.compare(expect, result);
	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
